package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.waimai.dao.model.RunfastBusinessDaily;
import com.runfast.waimai.dao.model.RunfastBusinessDailyExample;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface RunfastBusinessDailyService extends IService<RunfastBusinessDaily, Integer, RunfastBusinessDailyExample> {
    Map<String,Object> getStats(RunfastBusinessDailyExample example);

    List<Map<String,Object>> getTopList(RunfastBusinessDailyExample yesterdayExample);

    Integer countNoOrdersInThree(RunfastBusinessDailyExample yesterdayExample);

    Map<String,Object> countByExampleWithPageableGroupByBusinessId(RunfastBusinessDailyExample example, Pageable pageable);

    RunfastBusinessDaily sumByExample(RunfastBusinessDailyExample example);
}